$OpenBSD: patch-CMakeLists_txt,v 1.2 2016/08/13 15:18:58 jasper Exp $
--- CMakeLists.txt.orig	Thu Jun  2 23:20:22 2016
+++ CMakeLists.txt	Fri Jul 15 20:48:10 2016
@@ -37,18 +37,12 @@ if (WIN32)
 else (WIN32)
 	set (BINDIR bin)
 	set (SBINDIR sbin)
-	if ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
-		set (SYSCONFDIR /etc/mosquitto)
-	else ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
-		set (SYSCONFDIR etc/mosquitto)
-	endif ("${CMAKE_INSTALL_PREFIX}" STREQUAL /usr)
 	
 	set (LIBDIR lib${LIB_SUFFIX})
-	set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}")
 	set (INCLUDEDIR include)
 	set (DATAROOTDIR share)
-	set (MANDIR "${DATAROOTDIR}/man")
-	set (SHAREDIR "${DATAROOTDIR}/mosquitto")
+	set (MANDIR "man")
+	set (SYSCONFDIR "${DATAROOTDIR}/examples/mosquitto")
 endif (WIN32)
 
 option(WITH_TLS
